<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改产品品牌')" />


</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-unit-edit" th:object="${unit}">
            <input id="unitId" name="unitId" th:field="*{unitId}"  type="hidden">



            <div class="form-group">
                <label class="col-sm-2 control-label is-required">品牌名称：</label>
                <div class="col-sm-10">
                    <input id="unitName" name="unitName" th:field="*{unitName}" class="form-control" type="text" required>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label is-required">显示排序：</label>
                <div class="col-sm-10">
                    <input class="form-control" type="text" name="orderNum" th:field="*{orderNum}"  required>
                </div>
            </div>
		</form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "goods/unit";

		$("#form-unit-edit").validate({
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	// var sHTML = $('.summernote').summernote('code');
				// $("#unitContent").val(sHTML);
				$.operate.save(prefix + "/edit", $('#form-unit-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
